package com.yzq.controller;

import com.yzq.common.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Api(tags = "HelloController")
@RestController
public class HelloController {

    @ApiOperation("hello world")
    @RequestMapping("/hello")
    public Result<String> hello() {
        return Result.success("成功！");
    }
}
